package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Id;
import com.ndp.fb.rdb.annotation.NoSave;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Sisi on 14-10-18.对应产品
 * Page、Application、Events、Place、Domains
 */
@Setter
@Getter
@NoArgsConstructor
public class ConnectionObject implements Serializable {
    private static final long serialVersionUID = 357178914818339756L;
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * fb_connection_object_id
     * fbConnectionObjectId:FB上抓到的应用ID唯一
     */
    private Long fbConnectionObjectId;
    /**
     * type
     * 1：Page
     * 2：Application
     * 3：Events
     * 6：Place
     * 7：Domains
     */
    private Integer type;
    /**
     * name
     */
    private String name;
    /**
     * native_app_store_ids
     */
    private String nativeAppStoreIds;
    /**
     * native_app_targeting_ids
     */
    private String nativeAppTargetingIds;
    /**
     * picture
     */
    private String picture;
    /**
     * supported_platforms
     */
    private String supportedPlatforms;
    /**
     * object_store_urls
     */
    private String objectStoreUrls;
    /**
     * url
     */
    private String url;
    /**
     * logo_url
     */
    private String logoUrl;
    /**
     * icon_url
     */
    private String iconUrl;

    /**
     * 与Mysql无对应关系
     * 程序处理使用,数据库没有这个字段 mikey
     * 0: 不删除  1:删除
     */
    @NoSave
    private Integer isDelete;

    /**
     * 与Mysql无对应关系
     * add by evan 区分外链产品
     */
    @NoSave
    private String productType;

}
